<?php

//市场订单支付（直通车）
$xmltx1311 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.0"> 
	<Head> 
		<TxCode>1311</TxCode> 
	</Head>  
	<Body> 
		<InstitutionID/>  
		<OrderNo/>  
		<PaymentNo/>  
		<Amount/>  
		<Remark/>  
		<NotificationURL/>  
		<PayeeList/>  
		<BankID/>  
		<AccountType/>
	</Body> 
</Request>
XML;
//市场订单支付查询
$xmltx1320 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.0"> 
  <Head> 
    <TxCode>1320</TxCode> 
  </Head>  
  <Body> 
    <InstitutionID/>  
    <PaymentNo/> 
  </Body> 
</Request>
XML;
//后台通知
$xmlNotification = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Response version="2.0">
<Head>
	<Code/>
	<Message/>
</Head>
</Response>
XML;
//市场订单结算一（结算）
$xmltx1341 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <TxCode>1341</TxCode> 
  </Head>  
  <Body> 
	<InstitutionID/>  
	<SerialNumber/>  
	<OrderNo/>  
	<Amount/>  
	<Remark/>  
	<AccountType/>  
	<PaymentAccountName/>  
	<PaymentAccountNumber/>  
	<BankAccount> 
	<BankID/>  
	<AccountName/>  
	<AccountNumber/>  
	<BranchName/>  
	<Province/>  
	<City/> 
	</BankAccount> 
  </Body> 
</Request>
XML;
//市场订单结算交易查询
$xmltx1350 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <TxCode>1350</TxCode> 
  </Head>  
  <Body> 
	<InstitutionID/>  
	<SerialNumber/>  
  </Body> 
</Request>
XML;
//批量代付
$xmltx1510 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <TxCode>1510</TxCode> 
  </Head>  
  <Body> 
	<InstitutionID/>  
	<BatchNo/>  
	<TotalAmount/>  
	<TotalCount/>  
	<Remark/>  
	<PaymentFlag/> 
        <Item>
            <ItemNo/>
            <Amount/>
            <BankID/>
            <AccountType/>
            <AccountName/>
            <AccountNumber/>
            <BranchName/>
            <Province/>
            <City/>
            <Note/>
            <PhoneNumber/>
            <Email/>
            <IdentificationType/>
            <IdentificationNumber/>
        </Item>
  </Body> 
</Request>
XML;
//批量代付查询
$xmltx1520 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <TxCode>1520</TxCode> 
  </Head>  
  <Body> 
	<InstitutionID/>  
	<BatchNo/>
  </Body> 
</Request>
XML;
//批量代付交易对账
$xmltx1550 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <TxCode>1550</TxCode> 
  </Head>  
  <Body> 
	<InstitutionID/>  
	<Date/>
  </Body> 
</Request>
XML;
/****0925 start****/
//建立绑定关系（发送验证短信）
$xmltx2531 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <InstitutionID/>  
    <TxCode>2531</TxCode> 
  </Head>  
  <Body> 
	<TxSNBinding/>
	<BankID/>
        <AccountName/>
        <AccountNumber/>
        <InstitutionID/>          
        <IdentificationType/>
        <IdentificationNumber/>
        <PhoneNumber/>
        <CardType/>
        <ValidDate/>
        <CVN2/>
  </Body> 
</Request>
XML;
//建立绑定关系（验证并绑定）
$xmltx2532 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head> 
    <InstitutionID/>          
    <TxCode>2532</TxCode>
  </Head>  
  <Body> 
	<TxSNBinding/>  
        <InstitutionID/>          
	<SMSValidationCode/>
  </Body> 
</Request>
XML;
/****0925新增 end****/
//交易对账单2015-11-3
$xmltx1810 = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<Request version="2.1"> 
  <Head>        
    <TxCode>1810</TxCode>
  </Head>  
  <Body> 
        <InstitutionID/>  
	<Date/>  
  </Body> 
</Request>
XML;
//自定义错误返回响应
$ownerror = <<<XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Response version="2.0">
<Head>
<Code/>
<Message/>
</Head>
</Response>
XML;

return [
'APPLY_TEMPLATE_ID' => 11564,
'BILL_TEMPLATE_ID' => 11309,
    'oss_file' => [
    'image' => [],
    'apply' => [
        'oss_access_key_id' => 'LTAIUkuBhheyibkn',
        'oss_access_key_secret' => 'xl92sKkgNSrtY88ivJOh75emYNfbUe',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 30
    ],
    'project' => [
        'oss_access_key_id' => 'LTAIUkuBhheyibkn',
        'oss_access_key_secret' => 'xl92sKkgNSrtY88ivJOh75emYNfbUe',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 30
    ],
    'product' => [
        'oss_access_key_id' => 'LTAIUkuBhheyibkn',
        'oss_access_key_secret' => 'xl92sKkgNSrtY88ivJOh75emYNfbUe',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 30
    ],
    'partner' => [
        'oss_access_key_id' => 'LTAIUkuBhheyibkn',
        'oss_access_key_secret' => 'xl92sKkgNSrtY88ivJOh75emYNfbUe',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 30
    ],
    'news' => [
        'oss_access_key_id' => 'LTAIKjnfrIIyYI6i',
        'oss_access_key_secret' => 'sv2M8ELnNdQa02rxJyNJ5ssYsfX5jj',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 60 * 60
    ],
   'adv' => [
        'oss_access_key_id' => 'LTAIKjnfrIIyYI6i',
        'oss_access_key_secret' => 'sv2M8ELnNdQa02rxJyNJ5ssYsfX5jj',
        'oss_url' => 'oss-cn-beijing.aliyuncs.com',
        'bucket' => 'fae',
        'timeout' => 60 * 60
    ],
],

    "main_url" => "https://www.njfae.cn",
    'host' => "https://www.njfae.cn/",
    'cfca' => [
        'InstitutionID' => "001585", //机构号码 测试账号
        'PAYURL' => "https://www.china-clearing.com/Gateway/InterfaceI",
        'TXURL' => "https://www.china-clearing.com/Gateway/InterfaceII",
        'PAYURL2' => "https://payment.china-clearing.com/Gateway4PaymentUser/InterfaceI",
        'TXURL2' => "https://payment.china-clearing.com/Gateway4PaymentUser/InterfaceII",
        'ownerror' => $ownerror,
        'xmltx1311' => $xmltx1311,
        'xmltx1320' => $xmltx1320,
        'xmltx1341' => $xmltx1341,
        'xmltx1350' => $xmltx1350,
        'xmltx1510' => $xmltx1510,
        'xmltx1520' => $xmltx1520,
        'xmltx1550' => $xmltx1550,
        'xmltx1810' => $xmltx1810,
	'xmltx2531'=>$xmltx2531,
        'xmltx2532'=>$xmltx2532,
        'xmlNotification' => $xmlNotification
    ],
'review_file' => [
        'host' => 'http://doc.njfae.cn/view/url?url=',
        'path' => 'http://www.njfae.cn',
'uploadPath'=>'http://doc.njfae.cn/doc/upload',
        'jsonPath'=>'http://doc.njfae.cn/view/',
'doc'=>'http://doc.njfae.cn',
'mdcPath'=>'https://mdc.njfae.cn',
    ],
    'bank' => [
//        '700' => [
//            'sort' => '0',
//            'bankname' => 'CFCA模拟银行',
//            'number' => '700',
//            'support'=>'11-12',
//            'status' => "1",
//        ],
        '100' => [
            'sort' => '1',
            'bankname' => '中国邮政储蓄银行',
            'number' => '100',
            'support'=>'11',
            'status' => "1",
        ],
        '102' => [
            'sort' => '2',
            'bankname' => '中国工商银行',
            'number' => '102',
            'support'=>'11-12',
            'status' => "1",
        ],
        '103' => [
            'sort' => '3',
            'bankname' => '中国农业银行',
            'number' => '103',
            'support'=>'11-12',
            'status' => "1",
        ],
        '104' => [
            'sort' => '4',
            'bankname' => '中国银行',
            'number' => '104',
            'support'=>'11',
            'status' => "1",
        ],
        '105' => [
            'sort' => '5',
            'bankname' => '中国建设银行',
            'support'=>'11-12',
            'number' => '105',
            'status' => "1",
        ],
        '301' => [
            'sort' => '6',
            'bankname' => '交通银行',
            'number' => '301',
            'support'=>'11-12',
            'status' => "1",
        ],
        '302' => [
            'sort' => '7',
            'bankname' => '中信银行',
            'number' => '302',
            'support'=>'11',
            'status' => "1",
        ],
        '303' => [
            'sort' => '8',
            'bankname' => '中国光大银行',
            'number' => '303',
            'support'=>'11',
            'status' => "1",
        ],
        '304' => [
            'sort' => '9',
            'bankname' => '华夏银行',
            'number' => '304',
            'support'=>'11',
            'status' => "1",
        ],
        '305' => [
            'sort' => '10',
            'bankname' => '中国民生银行',
            'number' => '305',
            'support'=>'11',
            'status' => "1",
        ],
        '306' => [
            'sort' => '11',
            'bankname' => '广发银行',
            'number' => '306',
            'support'=>'11',
            'status' => "1",
        ],
        '307' => [
            'sort' => '12',
            'bankname' => '平安银行',
            'number' => '307',
            'support'=>'11',
            'status' => "1",
        ],
        '308' => [
            'sort' => '13',
            'bankname' => '招商银行',
            'number' => '308',
            'support'=>'11-12',
            'status' => "1",
        ],
//        '309' => [
//            'sort' => '14',
//            'bankname' => '兴业银行',
//            'number' => '309',
//            'support'=>'11',
 //           'status' => "1",
  //      ],
        '310' => [
            'sort' => '15',
            'bankname' => '浦发银行',
            'number' => '310',
            'support'=>'11',
            'status' => "1",
        ],
        '401' => [
            'sort' => '16',
            'bankname' => '上海银行',
            'number' => '401',
            'support'=>'11',
            'status' => "1",
        ],
        '403' => [
            'sort' => '17',
            'bankname' => '北京银行',
            'number' => '403',
            'support'=>'11',
            'status' => "1",
        ],
        '408' => [
            'sort' => '18',
            'bankname' => '宁波银行',
            'number' => '408',
            'support'=>'11',
            'status' => "0",
        ],
        '422' => [
            'sort' => '19',
            'bankname' => '河北银行',
            'number' => '422',
            'support'=>'11',
            'status' => "0",
        ],
        '424' => [
            'sort' => '20',
            'bankname' => '南京银行',
            'number' => '424',
            'support'=>'11',
            'status' => "1",
        ],
        '434' => [
            'sort' => '21',
            'bankname' => '天津银行',
            'number' => '434',
            'support'=>'11',
            'status' => "0",
        ],
        '440' => [
            'sort' => '22',
            'bankname' => '徽商银行',
            'number' => '440',
            'support'=>'11',
            'status' => "1",
        ],
        '442' => [
            'sort' => '23',
            'bankname' => '哈尔滨银行',
            'number' => '442',
            'support'=>'11',
            'status' => "0",
        ],
        '447' => [
            'sort' => '24',
            'bankname' => '兰州银行',
            'number' => '447',
            'support'=>'11',
            'status' => "0",
        ],
        '450' => [
            'sort' => '25',
            'bankname' => '青岛银行',
            'number' => '450',
            'support'=>'11',
            'status' => "0",
        ],
        '889' => [
            'sort' => '26',
            'bankname' => '银联在线支付',
            'number' => '889',
            'support'=>'11',
            'status' => "0",
        ],
        '1403' => [
            'sort' => '27',
            'bankname' => '常熟农商银行',
            'number' => '1403',
            'support'=>'11',
            'status' => "0",
        ],
        '1433' => [
            'sort' => '28',
            'bankname' => '尧都农商银行',
            'number' => '1433',
            'support'=>'11',
            'status' => "0",
        ],
        '3001' => [
            'sort' => '29',
            'bankname' => '东亚银行',
            'number' => '3001',
            'support'=>'11',
            'status' => "0",
        ],
	'1501' => [
            'sort' => '29',
            'bankname' => '江苏银行',
            'number' => '1501',
            'support'=>'11',
            'status' => "0",
        ],
        '316' => [
            'sort' => '30',
            'bankname' => '浙商银行',
            'number' => '316',
            'support'=>'11',
            'status' => "1",
        ],
         '408' => [
            'sort' => '31',
            'bankname' => '宁波银行',
            'number' => '408',
            'support'=>'11',
            'status' => "1",
        ],
         '423' => [
            'sort' => '31',
            'bankname' => '杭州银行',
            'number' => '423',
            'support'=>'11',
            'status' => "0",
        ],
    ],
];
